package org.csu.newpetstoreback.service;

import org.csu.newpetstoreback.common.CommonResponse;
import org.csu.newpetstoreback.entity.Category;
import org.csu.newpetstoreback.entity.Item;
import org.csu.newpetstoreback.entity.Product;
import org.csu.newpetstoreback.vo.ItemVO;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface CatalogService {
    CommonResponse<List<Category>> getCategories();

    CommonResponse<Category> getCategoryById(String categoryId);

    CommonResponse<List<Product>> getProductsByCategory(String categoryId);

    CommonResponse<Product> getProductById( String productId);

    CommonResponse<List<ItemVO>> getItemsByProductId(String productId);

    CommonResponse<ItemVO> getItemById(String itemId);

    CommonResponse <List<Product>>searchProductList(String keyword);

}
